"How To" generate random non-zero numbers.

Mobius Logo

 

  • The hard way:

    $a=range(-5,5);
    condition: ne($a,0);
     

  • The easy way:

    $a=range(1,5)*(-1)^rint(2);

How To Index

Main Index

Updated: 2021/07/16 SMS/DAG